package web.handler


import manager.AsyncTask
import org.json.JSONObject


class OnPayAndDeliveryHandler(json: JSONObject) : OnPayHandler(json) {

    companion object {

        const val REQ = "payAndDelivery"
    }

    override fun begin() {
        if (OnPayHandler.payFlag || OnDeliveryHandler.runFlag) {
            throw IllegalStateException("busy")
        }
    }

    override fun onPaySuccess() {
        AsyncTask.post( OnDeliveryHandler(json) )
    }

}

